﻿using System;
using System.Collections.Generic;
using System.Text;
using S7.IDAL;

namespace S7.BLL
{
    public class UserInfo : IUserInfo
    {
        IUserInfo idal = S7.DALFactory.Create.UserInfo();

        public object RegUser(MODEL.UserInfo info)
        {
            return idal.RegUser(info);
        }

        public bool Login(string account, string password)
        {
            return idal.Login(account, password);
        }

        public MODEL.UserInfo GetInfo(string account)
        {
            return idal.GetInfo(account);
        }

        public int Updata(MODEL.UserInfo newInfo, string account)
        {
            return idal.Updata(newInfo, account);
        }

        public int Delete(string account)
        {
            return idal.Delete(account);
        }

        public IList<MODEL.UserInfo> GetList()
        {
            return idal.GetList();
        }

        public IList<MODEL.UserFriendInfo> GetFriends(string account)
        {
            return idal.GetFriends(account);
        }
    }
}
